package com.example.comzg24_2.updata

import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import com.alibaba.android.arouter.launcher.ARouter
import com.blankj.utilcode.util.SPUtils
import com.blankj.utilcode.util.ToastUtils
import com.example.base.url.mvvm.BaseActivity
import com.example.comzg24_2.R
import com.example.comzg24_2.databinding.ActivityUpDataBinding
import com.example.comzg24_2.login.LoginActivity
import com.example.comzg24_2.login.LoginViewModel

class UpDataActivity : BaseActivity<ActivityUpDataBinding,LoginViewModel>() {
    override fun initView() {

        binding.btnUp.setOnClickListener {
            SPUtils.getInstance().put("name",binding.etName.text.toString())
            ARouter.getInstance().build("/app/resetActivity").navigation()
        }
    }

    override fun initData() {

    }

    override fun getLayout(): Int {
        return R.layout.activity_up_data
    }

    override fun getViewModel(): Class<LoginViewModel> {
        return LoginViewModel::class.java
    }
}